<?php
/**

 //  The DoYouHaoBaby PHP FrameWork - wedoit
 //  +---------------------------------------------------------------------
 //
 //  “Copyright”
 //  +---------------------------------------------------------------------
 //  | (C) 2010 - 2099 http://doyouhaobaby.net All rights reserved.
 //  | This is not a free software,use is subject to license terms
 //  +---------------------------------------------------------------------
 //
 //  “About This File”
 //  +---------------------------------------------------------------------
 //  | wedoit 公用控制器
 //  +---------------------------------------------------------------------

*/

!defined('DYHB_PATH') && exit;

class InitController extends Controller{
	
	public function init__(){
		parent::init__();

		$arrUserData=Dyhb::cookie('user_login');

		if(empty($arrUserData['user_id'])){
			$GLOBALS['___login___']=false;
		}else{
			$GLOBALS['___login___']=$arrUserData;
		}

		unset($arrUserData);
	}

}
